package lwuit_cdc;

//Should be javax.tv.xlet.Xlet to be compatible with Java DTV
//import javax.tv.xlet.Xlet;
//import javax.tv.xlet.XletContext;
//import javax.tv.xlet.XletStateChangeException;

import javax.microedition.xlet.Xlet;
import javax.microedition.xlet.XletContext;
import javax.microedition.xlet.XletStateChangeException;

import com.sun.lwuit.uidemo.UIDemo;

/**
 *
 * @author ts157100
 */
public class Main implements Xlet{

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        System.setProperty("java.awt.DefaultBackgroundColor", "0x00000000");
        System.setProperty("java.awt.flushThread", "0");
       new UIDemo();
    }

	public void destroyXlet(boolean unconditional) throws XletStateChangeException {
		// TODO Auto-generated method stub
		
	}

	public void initXlet(XletContext ctx) throws XletStateChangeException {
		// TODO Auto-generated method stub
		
	}

	public void pauseXlet() {
		// TODO Auto-generated method stub
		
	}

	public void startXlet() throws XletStateChangeException {
		Main.main(new String[]{});
	}

}
